﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Qu.SeniorProject.Model
{
    public class UserInfo
    {
        public string UserID { get; set; }
        public string LoginName { get; set; }
        public string UserType { get; set; } //'F' for Faculty and 'S' for Student
        public string FullName { get; set; }
        public string Email { get; set; }
        public bool IsAdmin { get; set; }
        public string Major { get; set; }
        public string Gender { get; set; }

        public bool IsStudent
        {
            get
            {
                return (UserType == "S");
            }
        }

        public bool IsFaculty
        {
            get
            {
                return (UserType == "F");
            }
        }
    }
}